home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.08 Aug 91 / Browser sources / LineCount.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-19  |  942 b   |  25 lines  |  [TEXT/KAHL]

  1. /******************************************************/
  2. /*                                                                                                      */
  3. /*    LineCount.h                                                                              */
  4. /*                                                                                                      */
  5. /*    Not a class - utility that counts lines in the      */
  6. /*    file and builds the line starts table.  Separated */
  7. /*    from CBrowserDoc for ease of testing and tuning.    */
  8. /*    See CBrowserDoc for definition of line starts         */
  9. /*    table.                                                                                        */
  10. /*                                                                                                      */
  11. /*    Written in Think C version 4.0.2                                  */
  12. /*                                                                                                      */
  13. /*    Allen Stenger    January 1991                                              */
  14. /*                                                                                                      */
  15. /******************************************************/
  16.  
  17. #define _H_LineCount
  18.  
  19. /* count lines and build line starts table                        */
  20. void DoLineCount( 
  21.     Handle     textHandle,        /* handle to text                         */
  22.     short        *theLineCtP,    /* output - line count                 */
  23.     long        ***theLineStartsHP ); /* output - line             */
  24.                                                 /* starts table                             */
  25.